#include <stdio.h>

void main(void){

    char ch;

    int end = 0;

    printf("please entering your name: ");

    while (1) {
        switch (ch = getchar()) {
            case EOF:
                puts("\nend!\n");
                end = 1;
                break;

            case '\n':
                printf("\nplease entering your name: ");
                break;

            default:
                putchar(ch);
        }

        if (end) {
            break;
        }
    }
    return;

}
